<?php
/**
 *
 * Created by PhpStorm.
 * User: 墨染
 * Date: 2020/12/16
 * Time: 14:39
 */

$txt = "Hello world!";
echo $txt;

echo PHP_EOL;

$txt1="Hello world!";
$txt2="What a nice day!";
echo $txt1 . " " . $txt2;

echo PHP_EOL;

// strlen() 函数返回字符串的长度（字节数）。
echo strlen("Hello world!");

echo PHP_EOL;

// strpos() 函数用于在字符串内查找一个字符或一段指定的文本
echo strpos("Hello world!", "world");
?>
